<template>
<div class="container__">
    <van-cell-group>
        <van-cell title="支付密码" is-link link-type="navigateTo" url="/pages/passwords/main?type=pay"></van-cell>
        <!-- <van-cell title="登录密码" is-link link-type="navigateTo" url="/pages/passwords/main?type=login"/> -->
    </van-cell-group>

    <van-cell class="cnter" @click="loginOut">
        退出登录
    </van-cell>
</div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    methods: {
        loginOut(){
            wx.clearStorage();
            wx.showToast({
                title: '退出成功',
                duration: 1500,
                mask: false,
                success: (result) => {
                    wx.reLaunch({
                        url: '/pages/index/main'
                    })
                },
                fail: () => {},
                complete: () => {}
            });
                
            
        }
    },
    created() {

    },

}
</script>

<style lang="scss">
.container__ {
    background-color: #F4F5F5;
    min-height: 100vh;
    font-size: 16px;
    // padding: 40px 15px;
    box-sizing: border-box;

    .van-cell {
        align-items: center;
        height: 51px;
    }

    .van-cell-group {
        margin-bottom: 10px;
    }

    .cnter {
        .van-cell__value {
            font-size: 14px;
            font-weight: 500;
            color: rgba(51, 51, 51, 1);
            text-align: center;

        }
    }
}
</style>
